package com.rongc.client.freight.base.view.widget;

import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.widget.LinearLayout;

import com.flyco.dialog.widget.MaterialDialog;

/**
 * Created by Bruce on 2017/1/4.
 */
public class BaseMyDialog extends MaterialDialog {

    public BaseMyDialog(Context context) {
        super(context);
        mLlBtns.setVisibility(View.GONE);
    }

    @Override
    public View onCreateView() {

        /** title */
//        mTvTitle.setVisibility(View.GONE);
//        mLlContainer.addView(mTvTitle);

        /** content */
        mTvContent.setPadding(dp2px(20), dp2px(20), dp2px(20), dp2px(20));
        mTvContent.setGravity(Gravity.CENTER);
        mTvContent.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,
                LinearLayout.LayoutParams.WRAP_CONTENT));
        mLlContainer.addView(mTvContent);

        /**btns*/
//        mLlBtns.setVisibility(View.GONE);
//        mLlContainer.addView(mLlBtns);

        return mLlContainer;
    }

}
